package com.ht.pms.core.dto;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 邮件发送记录表
 * </p>
 *
 * @author 喻尊龙
 * @since 2018-11-26
 */
@ApiModel
@TableName("t_notice_email_record")
public class NoticeEmailRecord extends Model<NoticeEmailRecord> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	@ApiModelProperty(required= true,value = "")
	private Integer id;
    /**
     * 关联 t_upload_temp
     */
	@TableField("batch_code")
	@ApiModelProperty(required= true,value = "关联 t_upload_temp")
	private String batchCode;
	@TableField("create_time")
	@ApiModelProperty(required= true,value = "")
	private Date createTime;
    /**
     * 最后更新时间
     */
	@TableField("last_update_time")
	@ApiModelProperty(required= true,value = "最后更新时间")
	private Date lastUpdateTime;
    /**
     * 发送状态  0 发送成功 1 发送失败 2 撤回
     */
	@TableField("send_state")
	@ApiModelProperty(required= true,value = "发送状态  0 发送成功 1 发送失败 2 撤回")
	private Integer sendState;
    /**
     * 确认状态 0 未确认 1 已确认
     */
	@TableField("confirm_state")
	@ApiModelProperty(required= true,value = "确认状态 0 未确认 1 已确认")
	private Integer confirmState;
	@TableField("job_code")
	@ApiModelProperty(required= true,value = "")
	private String jobCode;
    /**
     * 发送类型 1.考勤 2.工资
     */
	@TableField("send_type")
	@ApiModelProperty(required= true,value = "发送类型 1.考勤 2.工资")
	private Integer sendType;
    /**
     * 姓名
     */
	@ApiModelProperty(required= true,value = "姓名")
	private String name;
    /**
     * 发送编码
     */
	@TableField("send_code")
	@ApiModelProperty(required= true,value = "发送编码")
	private String sendCode;
    /**
     * 发送年月
     */
	@TableField("send_ym")
	@ApiModelProperty(required= true,value = "发送年月")
	private String sendYm;
    /**
     * 邮件类型
     */
	@TableField("email_type")
	@ApiModelProperty(required= true,value = "邮件类型")
	private String emailType;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getBatchCode() {
		return batchCode;
	}

	public void setBatchCode(String batchCode) {
		this.batchCode = batchCode;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	public Integer getSendState() {
		return sendState;
	}

	public void setSendState(Integer sendState) {
		this.sendState = sendState;
	}

	public Integer getConfirmState() {
		return confirmState;
	}

	public void setConfirmState(Integer confirmState) {
		this.confirmState = confirmState;
	}

	public String getJobCode() {
		return jobCode;
	}

	public void setJobCode(String jobCode) {
		this.jobCode = jobCode;
	}

	public Integer getSendType() {
		return sendType;
	}

	public void setSendType(Integer sendType) {
		this.sendType = sendType;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSendCode() {
		return sendCode;
	}

	public void setSendCode(String sendCode) {
		this.sendCode = sendCode;
	}

	public String getSendYm() {
		return sendYm;
	}

	public void setSendYm(String sendYm) {
		this.sendYm = sendYm;
	}

	public String getEmailType() {
		return emailType;
	}

	public void setEmailType(String emailType) {
		this.emailType = emailType;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "NoticeEmailRecord{" +
			", id=" + id +
			", batchCode=" + batchCode +
			", createTime=" + createTime +
			", lastUpdateTime=" + lastUpdateTime +
			", sendState=" + sendState +
			", confirmState=" + confirmState +
			", jobCode=" + jobCode +
			", sendType=" + sendType +
			", name=" + name +
			", sendCode=" + sendCode +
			", sendYm=" + sendYm +
			", emailType=" + emailType +
			"}";
	}
}
